package com.neusoft.yiyang.customer.client;

import com.neusoft.yiyang.common.entity.bed.BedUsage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "bed-service")
public interface BedUsageClient {
    //创建床位使用记录
    @PostMapping("/bed-usage/add")
    void addBedUsage(@RequestBody BedUsage bedUsage);

    //查询床位记录
    @GetMapping("/bed-usage/searchByCB")
    BedUsage getBedusageByCid(@RequestParam Integer customerId);

    //更新床位记录
    @PutMapping("/bed-usage/update")
    void updateBedUsage(@RequestBody BedUsage bedUsage);

}
